import request from '@/utils/request'

// 查询订单配送记录列表
export function listOrderDelv(query) {
  return request({
    url: '/taskhub/orderDelv/list',
    method: 'get',
    params: query
  })
}

// 查询订单配送记录详细
export function getOrderDelv(id) {
  return request({
    url: '/taskhub/orderDelv/' + id,
    method: 'get'
  })
}

// 新增订单配送记录
export function addOrderDelv(data) {
  return request({
    url: '/taskhub/orderDelv',
    method: 'post',
    data: data
  })
}

// 修改订单配送记录
export function updateOrderDelv(data) {
  return request({
    url: '/taskhub/orderDelv',
    method: 'put',
    data: data
  })
}

// 删除订单配送记录
export function delOrderDelv(id) {
  return request({
    url: '/taskhub/orderDelv/' + id,
    method: 'delete'
  })
}
